﻿using System.Threading.Tasks;
using Shared.DataPermissions;
using Shared.DataPermissions.OrganizationUnits;
using Shared.Hierarchy;

namespace Yyd.OrganizationUnits.DataPermissions
{
    public interface IOrganizationUnitDataPermissionParser
    {
        Task<OrganizationUnitDataPermission> GetOrganizationUnitsAsync(
            TreeNodeWay treeNodeWay = TreeNodeWay.CurrentAndChild,
            params OrganizationUnitType[] dptType);

        Task<DepartmentDataPermission> GetDepartmentsAsync(
            TreeNodeWay treeNodeWay = TreeNodeWay.CurrentAndChild);

        Task<SchoolDataPermission> GetSchoolsAsync(
            TreeNodeWay treeNodeWay = TreeNodeWay.CurrentAndChild);
    }
}
